package org.rk.core.domain.module;

import javax.validation.constraints.NotNull;

import org.rk.core.common.anno.FieldMeta;
import org.rk.core.common.anno.TableMeta;
import org.rk.core.common.bean.BaseBean;

@TableMeta(name = "core_module", catalog = "rk_user_manage")
public class CoreModule extends BaseBean{

	private static final long serialVersionUID = 1L;
	
	@NotNull
	@FieldMeta(isUnique=true,name="uniqueId",length=100,desc="")
	private String uniqueId;
	@NotNull
	@FieldMeta(name="fatherUId",length=100,desc="")
	private String fatherUId;
	@NotNull
	@FieldMeta(isUnique=true,name="code",length=50,desc="")
	private String code;
	@NotNull
	@FieldMeta(name="name",length=50,desc="")
	private String name;
	
	@FieldMeta(name="indexUrl",length=200,desc="")
	private String indexUrl;
	
	@FieldMeta(name="isvalid",length=2,desc="")
	private String isvalid;
	
	@FieldMeta(name="isBizModule",length=1,desc="是否业务模块")
	private String isBizModule;

	public void setUniqueId(String uniqueId){
		this.uniqueId=uniqueId;
	}

	public String getUniqueId(){
		return uniqueId;
	}

	public void setFatherUId(String fatherUId){
		this.fatherUId=fatherUId;
	}

	public String getFatherUId(){
		return fatherUId;
	}

	public void setCode(String code){
		this.code=code;
	}

	public String getCode(){
		return code;
	}

	public void setName(String name){
		this.name=name;
	}

	public String getName(){
		return name;
	}

	public String getIndexUrl() {
		return indexUrl;
	}

	public void setIndexUrl(String indexUrl) {
		this.indexUrl = indexUrl;
	}
	public String getIsvalid() {
		return isvalid;
	}
	public void setIsvalid(String isvalid) {
		this.isvalid = isvalid;
	}

	public String getIsBizModule() {
		return isBizModule;
	}

	public void setIsBizModule(String isBizModule) {
		this.isBizModule = isBizModule;
	}

	public boolean equals(Object obj) {
		if (obj instanceof CoreModule) {
			CoreModule u = (CoreModule) obj;
			return this.getId().equals(u.getId());
		}
		return super.equals(obj);
	}
}
